package com.server.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户(User)表实体类
 *
 * @author wzw
 * @since 2024-07-30 13:57:23
 */
@TableName("user")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //用户名
    @TableField("nickname")
    private String nickname;
    //密码
    @TableField("password")
    private String password;
    //创建时间
    @TableField("time")
    private Date time;
    //7日令牌
    @TableField("token")
    private String token;
}
